# 导包
import app
import unittest
import time
from script.test01_login import TestLoginAPI
from htmltestreport import HTMLTestReport


# 指定报告保存位置
report = app.BASE_DIR + "/report/report-{}.html".format(time.strftime("%Y%m%d %H%M%S"))

# 组装测试套件
suite = unittest.TestSuite()
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(TestLoginAPI))

# 创建runner
runner = HTMLTestReport(report, title="登录接口自动化测试")

# 执行suite
runner.run(suite)













